let apiUrl
for (let item of process.argv) {
  if (item.startsWith('api:')) {
    apiUrl = item.split(':')[1]
  }
}

module.exports = {
  env: {
    NODE_ENV: '"development"',
    API_URL_LIST: JSON.stringify({
      zhangsan: 'http://zhangsan',
      lisi: 'http://list',
      default: 'https://api-dev.yicheshuke.com/'
    }),
    OSS_API_URL: '"https://api-yiche-pre.saasyc.com/yiche/oss/config"',
    API_URL: apiUrl ? `'${apiUrl}'` : "'default'"
  },
  defineConstants: {},
  mini: {},
  h5: {}
}
